package com.coffee.admin.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class IndexController {

    private final static Logger LOG = LoggerFactory.getLogger(IndexController.class);

    @RequestMapping("/")
    public ModelAndView index() {
        ModelAndView mav = new ModelAndView("redirect:/supplier/");

        return mav;
    }

    @RequestMapping("/platform/**")
    public ModelAndView v1() {
        ModelAndView mav = new ModelAndView("supplier");

        return mav;
    }

    @RequestMapping("/supplier/**")
    public ModelAndView v2() {
        ModelAndView mav = new ModelAndView("supplier");

        return mav;
    }
}
